package com.sugou.dao.support.bean;

import java.io.Serializable;
import java.util.ArrayList;

import com.sugou.dao.enums.ResultType;
import com.sugou.dao.support.Pages;
import com.sugou.dao.support.SearchResultInfo;

public class PagesList<E extends Serializable> extends ArrayList<E> implements Pages,SearchResultInfo<E> {
	private static final long serialVersionUID = 6777375863784261050L;
	
	private int total;
	
	private int page;
	
	private int size;

	private Serializable tags;
	
	public int getTotal() {
		return this.total;
	}

	public void setTotal(int total) {
		this.total=total;

	}

	public int getCount() {
		return this.size();
	}


	public boolean success() {
		return true;
	}

	public ResultType getType() {
		return ResultType.SEARCH;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public Serializable getTags() {
		return tags;
	}

	public void setTags(Serializable tags) {
		this.tags = tags;
	}

}
